package com.dries.portal.config;

import com.dries.portal.module.pay.interceptor.WxPayInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.*;

/**
 * @Description:
 * @Author ZSY
 * @createTime 2020/9/9 15:47
 */
@Configuration
public class MyWebConfig implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new WxPayInterceptor()).addPathPatterns("/wxPay/**");
    }

}
